<template>
	<view class="bg-gray1" style="min-height: 100vh;">
		<cu-custom :bgColor="'bg-'+theme.backgroundColor" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">{{title}}</block>
		</cu-custom>
		<view class="bg-white padding">
			<jyf-parser :html="msg_description"></jyf-parser>
		</view>
	</view>
</template>

<script>
	const util = require("utils/util.js");
	const app = getApp();
	import api from 'utils/api'
	export default {
		data() {
			return {
				CustomBar: this.CustomBar,
				theme: app.globalData.theme, //全局颜色变量
				title:'',
				msg_description: ""
			}
		},

		onLoad(options) {
			app.initPage().then(res => {
				this.title = options.title
				this.messageGet(options.id);
			});
		},

		methods: {
			messageGet(id) {
				api.messageGet(id).then(res => {
					this.msg_description = res.data;
				});
			},
		}
	}
</script>

<style>
	.img-box {
		width: 100%;
		height: 240rpx;
	}

	.article-image {
		width: 100%;
		height: 200rpx;
		margin: 0 auto;
	}
</style>